<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>angular.js第一个测试程序</title>
    <script src="../js/angular.min.js"></script>
</head>
<body>
<!--<div ng-app="">
    <p>在输入框中尝试输入：</p>
    <p>姓名：<input type="text" ng-model="name"></p>
    <p ng-bind="name"></p>
</div>-->
<!-- 初始化-->
<div data-ng-app="" data-ng-init="firstName='John'">
    <p >姓名：<span data-ng-bind="firstName"></span></p>
</div>
</body>
</html>